package com.huaxin.device.dto.enums.validation;

import com.huaxin.device.dto.enums.validator.InsulationLevelValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = InsulationLevelValidator.class)
public @interface ValidInsulationLevel {
    String message() default "无效的绝缘等级，允许值：Y, A, E, B, F, H, C";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}